}
else
{
+ GtkTextDirection dir = GTK_TEXT_DIR_LTR;
+ GtkTextAttributes attributes = { 0 };
+
_gtk_text_handle_set_visible (priv->text_handle, pos, TRUE);
rect.x = CLAMP (x, 0, SCREEN_WIDTH (text_view));
_text_window_to_widget_coords (text_view, &rect.x, &rect.y);
_gtk_text_handle_set_position (priv->text_handle, pos, &rect);
+
+ if (gtk_text_iter_get_attributes (iter, &attributes))
+ dir = attributes.direction;
+
+ _gtk_text_handle_set_direction (priv->text_handle, pos, dir);
}
}